﻿var picShare = angular.module("picShare", ['ngRoute', 'ngAnimate', 'ngTouch', 'infinite-scroll', 'pasvaz.bindonce']);

picShare.config(function ($routeProvider) {

    $routeProvider
        .when('/', {
            templateUrl: 'Templates/Page-Templates/login.html',
            controller: "loginController"
        })
        .when('/register',
            {
                templateUrl: 'Templates/Page-Templates/register.html',
                controller: "registerController"
            })
         .when('/albums',
            {
                templateUrl: 'Templates/Page-Templates/albums.html',
                controller: "albumsPageController"
            })
          .when('/upload',
            {
                templateUrl: 'Templates/Page-Templates/upload.html',
                controller: "uploadImageController"
            })
        .when('/my-images',
            {
                templateUrl: 'Templates/Page-Templates/my-images.html',
                controller: "myImagesController"
            })
//         .when('/images',
//            {
//                templateUrl: 'Templates/Page-Templates/images.html',
//                controller: "userImageController"
//            })
        .when('/current-album',
            {
                templateUrl: 'Templates/Page-Templates/current-album.html',
                controller: "currentAlbumController"
            })
         
        .otherwise({
            redirectTo: '/',
        });

   // $locationProvider.html5Mode(true);
});

